package com.tcm.entity.dto;

import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.util.List;

/**
 * @author Guqier
 * @version 1.0
 * @date 2023/7/20 18:59
 */
@Data
public class SubjectItemUpdateDto {

    //题目ID
    private Long id;

    // 章节ID
    @NotNull(message = "章节不能为空")
    private Long bookId;

    //难易程度，码表ID
    @NotNull(message = "难易程度不能为空")
    private Long difficultyId;

    //题目，案例患者病症主诉
    @NotBlank(message = "题目不能为空")
    private String content;

    @NotNull(message = "知识点不能为空")
    private List<String> knowledgePoints;// 知识点归类

    //病症类别，关联码表
    @NotNull(message = "病症分类不能为空")
    private Long category;

    //案例患者年龄
    @NotNull(message = "患者年龄不能为空")
    private Integer age;

    //案例患者性别，0为女性，1为男性
    @NotNull(message = "性别不能为空")
    private Integer gender;

    //答案：诊断
    @NotBlank
    private String ansDiagnose;

    //答案：病机
    @NotBlank
    private String ansCause;

    //答案：治法
    @NotBlank
    private String ansMethod;

    //答案：处方
    @NotBlank
    private String ansPrescription;

    //答案：药物
    @NotBlank
    private String ansMedicine;

    //病症解析
    @NotBlank(message = "病症解析不能为空")
    private String analysis;

    //诊断提示语
    @NotBlank
    private String tipDiagnose;

    //病机提示语
    @NotBlank
    private String tipCause;

    //治法提示语
    @NotBlank
    private String tipMethod;

    //处方提示语
    @NotBlank
    private String tipPrescription;

    //药物提示语
    @NotBlank
    private String tipMedicine;

    // 图片ID列表
    private List<Long> imageIds;
}
